package cn.txun.csmall.product.springtest;

//单例模式：通过对类的设计实现单例，外界只能拿到同一个对象
public class Singleton {

    private static Singleton instance= new Singleton();

    private Singleton(){}

    public static Singleton getInstance(){
        return instance;
    }


}
